Error System.Runtime.InteropServices.COM Exception:  Using Report Viewer and Reporting Services.
I'm trying to view a report that was developed using the Reporting Services 2005 in an asp.net (vb) page using the report viewer control. The report is on a separate server and Im in the development environment in vs.net. I created a form and added the viewer control to it with the code behind to tell the viewer where the reports located. But when I try to view the report it never loads and I get the following error. _______________________________________________________________________Server Error in '/XXXX' Application.--------------------------------------------------------------------------------Unhandled Execution Error Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.InteropServices.COMException: Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [COMException (0x80080005)] System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) +0 System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode) +34 System.Management.ManagementObjectEnumerator.MoveNext() +548 Microsoft.ReportingServices.Diagnostics.WebUtil.GetIPAddresses(String machine) +692 Microsoft.ReportingServices.Diagnostics.WebUtil.GetIPAddresses() +26 Microsoft.ReportingServices.Diagnostics.WebRequestUtil.get_LocalIPAddresses() +149 Microsoft.ReportingServices.Diagnostics.WebRequestUtil.IsLocalIPAddress(String ipAddress) +69 Microsoft.ReportingServices.Diagnostics.WebRequestUtil.IsClientLocal() +112 Microsoft.Reporting.WebForms.ErrorControl.WriteStackTrace(HtmlTextWriter writer) +34 Microsoft.Reporting.WebForms.ErrorControl.Render(HtmlTextWriter writer) +83 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +74 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +291 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +48 Microsoft.Reporting.WebForms.ReportViewer.Render(HtmlTextWriter writer) +213 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +74 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +291 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +48 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +234 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +53 System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +98 System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +43 System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +334 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +74 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +291 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +48 System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +56 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +234 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +53 System.Web.UI.Control.Render(HtmlTextWriter writer) +31 System.Web.UI.Page.Render(HtmlTextWriter writer) +39 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +74 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +291 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +48 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5537--------------------------------------------------------------------------------Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832 ______________________________________________________________________Here is my code behind on my asp.net page: If Not IsPostBack() Then Try ReportViewer1.ProcessingMode = ProcessingMode.Remote Me.ReportViewer1.ServerReport.ReportServerUrl = New System.Uri("http://Server/reportserver") While Me.ReportViewer1.ServerReport.IsDrillthroughReport Me.ReportViewer1.PerformBack() End While ' Could also be set to the selection of a ListBox. Dim strReport As String = "/Reporting/Test" Me.ReportViewer1.ServerReport.ReportPath = strReport Dim credentials As New MyReportServerCredentials() ReportViewer1.ServerReport.ReportServerCredentials = credentials Me.ReportViewer1.ServerReport.Refresh() Catch ex As Exception Throw ex End Try End IfI amthinking this an issue with the Report Viewer issue and not the configuration or the Reporting Services. But I have exhausted all my options and need some help and trying figure thiserror out.
August 13th, 2008 2:22pm

I got the same problem. I just put an <rsweb:ReportViewer /> on the page and set the ReportServerUrl and ReportPath and then set parameters in code-behind. <rsweb:ReportViewer ID="reportViewer" runat="server" ProcessingMode="Remote" Width="100%" SizeToReportContent="True" AsyncRendering="false" ShowParameterPrompts="true" > <ServerReport ReportServerUrl="http://xx" ReportPath="/xx/xx" /> </rsweb:ReportViewer> Dim paramList As List(Of ReportParameter) = New List(Of ReportParameter) paramList.Add(New ReportParameter("ID", "1234", False)) reportViewer.ServerReport.SetParameters(paramList) Part of Exception Details: Error Stack: System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Runtime.InteropServices.COMException (0x80080005): Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)) at Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.GetSecureMethods() at Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.IsSecureMethod(String methodname) at Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report, String HistoryID) at Microsoft.Reporting.WebForms.ServerReport.GetExecutionInfo() at Microsoft.Reporting.WebForms.ServerReport.SetParameters(IEnumerable`1 parameters) at Maybe this was caused by insufficient permission?
Free Windows Admin Tool Kit Click here and download it now
October 15th, 2008 10:58pm

4 years later, we're facing the same problem... anyone able to fix this?? same specs - SQL 2005, ReportViewerControl from FW2 hosted in FW4 application. the weird thing - we've got several web servers, similar (switched by load balancer), and 7 of the 8 work fine, while just one server fails on this... same code and same web config (which holds the RS URL)
August 15th, 2012 5:07am

Hello, Check out the links below. It may help you. http://forums.asp.net/t/1415157.aspxhttp://stackoverflow.com/questions/1184309/crystalreport-load-report-failed
Free Windows Admin Tool Kit Click here and download it now
August 15th, 2012 7:03am

thank you, a restart to the server solved it... :)
August 15th, 2012 7:49am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics